<template>
    <div class="page-container index-container">
        <div class="info-part">
            <div class="title">
                <h1>钱塘新区</h1>
                <span>分析 / 评价 / 决策</span>
            </div>
            <div class="part">
                <div>
                    <div class="liStatics">
                        <div class="name">综合指数</div>
                        <div class="score">3.72</div>
                    </div>
                    <div class="imgbox"></div>
                </div>
                <div>
                    <div class="liStatics">
                        <div class="name">均衡系数</div>
                        <div class="score">0.15</div>
                    </div>
                    <div class="imgbox"></div>
                </div>
            </div>
        </div>
        <div class="m-min-mainBox">
            <div class="gen-row">
                <div class="fullgenBox gen-shadow padt20" style="height:auto;min-height:450px;">

                    <div class="innerLeftBox u-flex_col">  
                        <div class="u-flex border-left" >
                            <div class="sideCollapse">

                            <el-collapse v-model="activeNames" @change="handleChange">
                                <el-collapse-item title="评价体系" name="1">
                                    <div class="sideMain">
                                        <div class="sideBox" :class="{'on':item=='学校创新发展'}" v-for="(item,index) in sideList1">{{item}}</div>
                                    </div>
                                </el-collapse-item>
                                <el-collapse-item title="评价内容" name="2">
                                    <div class="sideMain">
                                        <div class="sideBox" v-for="(item,index) in sideList2">{{item}}</div>
                                    </div>
                                </el-collapse-item>
                                <el-collapse-item title="维度" name="3">
                                    <div class="sideMain">
                                        <div class="sideBox" v-for="(item,index) in sideList3">{{item}}</div>
                                    </div>
                                </el-collapse-item>
                                
                            </el-collapse>

                            </div>
                        </div>
                    </div>

                    <div class="innerRightBox u-flex_col">
                        <div class="innerChartBox u-flex_col">
                            <div class="tit padt0">小学-学校创新发展</div>
                            <div class="u-flex" style="padding:0 40px 20px 10px;">
                                <u-lineEchart 
                                    :keyId="'gradedif1'" yAxisName="评价指数" xAxisName="年级"
                                    :legend="legendList1" :list="list1" fontNomal hasDiff isHasScatter>
                                </u-lineEchart>
                            </div>
                        </div>

                        <div class="innerChartBox u-flex_col pdt20">
                            <div class="tit padt0">中学-学校创新发展</div>
                            <div class="u-flex" style="padding:0 40px 20px 10px;">
                                <u-lineEchart 
                                    :keyId="'gradedif2'" yAxisName="评价指数" xAxisName="年级" 
                                    :legend="legendList2" :list="list2" fontNomal hasDiff isHasScatter>
                                </u-lineEchart>
                            </div>
                        </div>
                    </div>


                    
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return{
            activeNames: ['1','2'],
            sideList1:['学校创新发展','教师专业能力','学生综合素质发展'],
            sideList2:['学生特质','教师行为','领导风格','学校环境','师德修养','教学能力','教育能力','教研能力','创新行为','品德修养','身心素养','学业素养','学习素养','艺术素养','实践创新素养'],
            sideList3:['一级维度','二级维度','三级维度'],
            legendList1:[
                {name:'钱塘新区',key:1,color:'#4ca0ff',isSign: true,areaStyleColor:"#00cd86"},
                {name:'正常',key:2,color:'#00cd86'},
                {name:'需关注',min:0,max:2.6,color:'#ff7b12',isSign: true},
            ],
            list1:[
                {name:"钱塘新区",key:1,value:[3.2]},
                {name:"一年级",key:2,value:[4]},
                {name:"二年级",key:2,value:[2.5]},
                {name:"三年级",key:2,value:[4.2]},
                {name:"四年级",key:2,value:[3.2]},
                {name:"五年级",key:2,value:[3.5]},
                {name:"六年级",key:2,value:[4]},
            ],
            legendList2:[
                {name:'钱塘新区',key:1,color:'#4ca0ff',isSign: true,areaStyleColor:"#00cd86"},
                {name:'正常',key:2,color:'#00cd86'},
                {name:'需关注',min:0,max:3,color:'#ff7b12',isSign: true},
            ],
            list2:[
                {name:"钱塘新区",key:1,value:[3.2]},
                {name:"七年级",key:2,value:[4]},
                {name:"八年级",key:2,value:[3.5]},
                {name:"九年级",key:2,value:[4.2]},
            ],
        }
    },
    methods:{
        handleChange(val) {
            console.log(val);
        }
    }
}
</script>

<style lang="scss" scope>
.padt0{
    padding: 0px 20px 20px !important;
}
.sideCollapse{
    padding: 0 40px;
    /deep/{
        .el-collapse{
            border-bottom: none;
            border-top: none;
        }
        .el-collapse-item__wrap{
            border-bottom: none;
        }
        .el-collapse-item__header{
            height: auto;
            line-height: normal;
            font-size: 18px;
            font-weight: bold;
            color: #333;
            border-bottom: none;
            padding-bottom: 15px;
        }
    }
    .sideMain{
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-flow:row wrap;
        // padding: 15px 0;
    }
    .sideBox{
        margin: 5px 0;
        padding: 0 5px;
        width: 120px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        border-radius: 5px;
        background: #f3f5f7;
        color: #747e93;
        font-size: 16px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        &.on{
            color: #fff;
            background: #3964f9;
        }
    }
}
.padt20{
    padding: 20px 0;
}
.innerLeftBox{
    float: left;
    width: 335px;
    height: 100%;
    border-right: 1px solid #f4f5f9;
}
.innerRightBox{
    height: 100%;
    border-left: 1px solid #f4f5f9;
    transform: translateX(-1px);
}
.border-left{
   
}
.innerChartBox{
    width: 100%;
    height: 450px;
}
</style>